
package org.jeecg.modules.qy_wechat.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 企业微信应用聊天群实体
 */
@Data
@TableName("qywechat_chat")
@ApiModel(value = "企业微信应用聊天群对象", description = "企业微信应用聊天群")
public class QyWechat implements Serializable {
    private static final long serialVersionUID = 1L;

    /**主键*/
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;

    /**聊天群ID*/
    @ApiModelProperty(value = "聊天群ID（可选，不填则自动生成）")
    private String chatid;

    /**聊天群名称*/
    @ApiModelProperty(value = "聊天群名称")
    @NotEmpty(message = "群名称不能为空")
    private String name;

    /**群主ID*/
    @ApiModelProperty(value = "群主用户ID")
    @NotEmpty(message = "群主ID不能为空")
    private String owner;

    /**群成员列表*/
    @ApiModelProperty(value = "群成员用户ID列表")
    @NotEmpty(message = "群成员列表不能为空")
    private List<String> userlist;

    /**群状态[0=正常,1=已解散]*/
    @ApiModelProperty(value = "群状态[0=正常,1=已解散]")
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "创建时间")
    private Date updateTime;
}
